Apply Agenda to Chatbot
Agenda is a scheduling system within WOZTELL that will run a specific node for a member in a specific time. In simple words, it is a timer, when the countdown is finished, a message is sent.
You can apply Agenda to create a scheduled message, while the scheduled period and the response are all up to you. You can use the scheduled message for updating application status, confirming transaction, etc. To make your conversation flow more flexible, you can also remove the agenda and proceed to another node.
In this session, you will learn how to set up Agenda in WOZTELL, and build a sample conversation flow that will send a scheduled reminder to idled users.
Expected Outcome
Imagine you have a chatbot for customer service. When a customer enters your conversation flow but does not move on to the next conversation for 5 minutes, you want to send a reminder message to encourage the idled user to proceed with the conversation flow.
Sample Chatbot Structure
Set up Agenda in a General Node
Create the 1st general node, name it as "Greetings". This is the entry point of your conversation flow. In this case, we will apply the Agenda to this node.
Create a Response to greet the customer.
- Create a quick reply to let the user proceed.
Add Pre-action
- Add a new Pre-action and select "Set Agenda". The agenda would start counting down whenever a customer goes through this node.
Input Time
- Select a time unit among "minutes", "hours", "days" or "weeks". Input a scheduled time and the number must be integers. The minimum scheduled time allowed is 1 minute.
Input Chatbot ID
- Select the Chatbot ID of the chatbot that your scheduled message belongs to, and select the this node.
Input Tag
- Input a tag for your agenda, let's name it "reminder". It can be used to identify this agenda for other follow-up actions. Then click "Save".
Create Scheduled Message
Create a new general node, name it as "Scheduled Message". We will create the reminder message in this node.
Create a response or a follow-up question for your customer who is unresponsive for a specific period of time.
- Create two quick replies of "Yes" and "No".
- If needed, you can also bring your customer back to the normal conversation flow. In this case, you can create a global node, and redirect to the conversation if the customer selects "Yes" for the follow-up question.
- Now test your chatbot and see if you can get the expected outcome!
Remove Agenda
You want to send the reminder message to the idled users, without disturbing the responsive users. When the customer responds within the specific period of time, you want him to continue with the normal conversation flow. Therefore, you need to retract the reminder message by removing the agenda.
Expected Outcome
If the customer continues with the conversation flow within 5 minutes, the scheduled message will not be displayed.
- Create a new general node following "Greetings", let's name it as "Conversation Continue". Then, create a Response for your customer who moves on with the conversation, which contains a question and three quick replies in this example.
- Add a new trigger to "Conversation Continue". Then this node would be triggered when the customer selects "Know more about us".
Add Post-action
- Create a new Post-action in this node, let's name it as "Remove Agenda", then input the following code. When this node is triggered within the scheduled time, the conversation flow continues and this post-action can remove the previous agenda.
- Input the agenda tag "reminder" you created in the earlier step, then the agenda with the same tag would be removed when this node is triggered.
- Test your chatbot and see if it can successfully remove the agenda.
Add Facebook Message Tag
In Facebook Messenger, businesses are encouraged to respond to their customers within 24 hours. If you decide to send a scheduled message to a customer after 24 hours, you need to include the specific Message Tag in the agenda.
Expected Outcome
An "Account Update" message is sent to notify the customer about change of application status.
- Go back to "Greetings" node, or any of your node that contains the agenda. Select Pre-action, add the following code to the agenda.
meta: {
messagingTag: "ACCOUNT_UPDATE",
messagingType: "MESSAGE_TAG"
}
- The field
meta
can be used to save information in the agenda. In meta, enter the Message Tag and Message Type. Click here to find other Message Tags that match with the nature of your message.
tip
Please make sure your message sent on Facebook Messenger follows the guidelines of Facebook and the Message Tag Policy, for example, avoid sending promotional content frequently and sending push message to audience who has unsubscribed or disagreed to receive.
WhatsApp Message Template
For agenda, the scheduled time can be more than 24 hours. If your chatbot is on WhatsApp, you are also bind by their 24-hour customer care window. If you decide to send a scheduled message 24 hours after the last response from the customer. You need to make use of WhatsApp Message Template.
First, you will need to submit your template to WhatsApp team for review. After that, you can come back to the response modal and select "Message Template" as a message type under the "WhatsApp Cloud" platform.